Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

probe.gl

Package Overview
Dependencies
Maintainers
7
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

probe.gl

JavaScript console instrumentation for browser and Node

  • 3.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
154K
increased by10.43%
Maintainers
7
Weekly downloads
 
Created

What is probe.gl?

probe.gl is a JavaScript library designed for logging, benchmarking, and testing in web applications. It provides a suite of tools to help developers measure performance, debug issues, and ensure code quality.

What are probe.gl's main functionalities?

Logging

probe.gl provides a flexible logging system that allows developers to log messages at different levels (log, warn, error). The log messages can be filtered based on their severity.

const {Log} = require('probe.gl');
const log = new Log({id: 'my-app'});
log.log(1, 'This is a log message')();
log.warn('This is a warning message')();
log.error('This is an error message')();

Benchmarking

probe.gl includes a benchmarking tool that helps developers measure the performance of their code. It allows for the addition of multiple tests and provides detailed results after running the benchmarks.

const {Bench} = require('probe.gl');
const bench = new Bench({id: 'my-benchmark'});
bench.add('test1', () => {
  // Code to benchmark
});
bench.run().then(results => {
  console.log(results);
});

Testing

probe.gl offers a simple testing framework that can be used to write and run tests. It supports assertions and provides a straightforward way to ensure code correctness.

const {Test} = require('probe.gl');
const test = new Test({id: 'my-test'});
test('example test', t => {
  t.ok(true, 'This test should pass');
  t.end();
});
test.run();

Other packages similar to probe.gl

Keywords

FAQs

Package last updated on 02 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc